Package-level declarations

Insertion of random strings.

Types

Link copied to clipboard

All actions related to inserting strings.

Link copied to clipboard
class StringInsertAction(scheme: () -> StringScheme = { StringSettings.default.currentScheme }) : DataInsertAction

Inserts random alphanumerical strings.

Link copied to clipboard
data class StringScheme(var myName: String = DEFAULT_NAME, var minLength: Int = DEFAULT_MIN_LENGTH, var maxLength: Int = DEFAULT_MAX_LENGTH, var enclosure: String = DEFAULT_ENCLOSURE, var capitalization: CapitalizationMode = DEFAULT_CAPITALIZATION, var prefix: String = DEFAULT_PREFIX, var suffix: String = DEFAULT_SUFFIX, var serializedSymbolSets: Map<String, String> = DEFAULT_SYMBOL_SETS.toMap(), var serializedActiveSymbolSets: Map<String, String> = DEFAULT_ACTIVE_SYMBOL_SETS.toMap(), var excludeLookAlikeSymbols: Boolean = DEFAULT_EXCLUDE_LOOK_ALIKE_SYMBOLS) : Scheme<StringScheme>

Contains settings for generating random strings.

Link copied to clipboard
data class StringSettings(var schemes: MutableList<StringScheme> = DEFAULT_SCHEMES, var currentSchemeName: String = DEFAULT_CURRENT_SCHEME_NAME) : Settings<StringSettings, StringScheme>

The user-configurable collection of schemes applicable to generating strings.

Link copied to clipboard

Controller for random string generation settings.

Link copied to clipboard

Component for settings of random string generation.

Link copied to clipboard

The configurable for string settings.

Link copied to clipboard
data class SymbolSet(var name: String, var symbols: String)

A SymbolSet represents a named collection of symbols.

Link copied to clipboard

An editable table for selecting and editing SymbolSets.

Functions

Link copied to clipboard
fun Iterable<SymbolSet>.sum(excludeLookAlikeSymbols: Boolean = false): List<String>

Combines the symbols of all the symbol sets, optionally removing duplicate characters.

Link copied to clipboard
fun Collection<SymbolSet>.toMap(): Map<String, String>

Converts a collection of symbol sets to a map from the symbol sets' names to the respective symbols.

Link copied to clipboard
fun Map<String, String>.toSymbolSets(): List<SymbolSet>

Converts a map to a list of symbol sets, using the key as the name and the value as the symbols.